//
//  FitHeader.h
//  自封装头文件
//
//  Created by dllo on 15/10/30.
//  Copyright (c) 2015年 Wang Jianwei. All rights reserved.
//

#ifndef _______FitHeader_h
#define _______FitHeader_h

#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
#define FITWIDTH     [UIScreen mainScreen].bounds.size.width / 375
#define FITHEIGHT    [UIScreen mainScreen].bounds.size.height / 667
#define X frame.origin.x
#define Y frame.origin.y
#define WIDTH frame.size.width
#define HEIGHT frame.size.height
#define CONTENT_VIEW self.contentView

#define NSUSERDEFAULTS_NIGHT [[NSUserDefaults standardUserDefaults] boolForKey:@"night"]
#define BGCOLOR_BLACK [UIColor colorWithRed:0.08 green:0.08 blue:0.08 alpha:1]
#define BGCOLOR_LIGHTBLACK [UIColor colorWithRed:0.12 green:0.13 blue:0.13 alpha:1]
#define BGCOLOR_GRAY [UIColor colorWithRed:0.94 green:0.94 blue:0.96 alpha:1]
#define BGCOLOR_WHITE [UIColor whiteColor]
#define ADD_NSNOTIFICATIONCENTER_OBSERVER [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeColor) name:@"change" object:nil]
#define NSNOTIFICATION_DEFAULTCENTER [NSNotificationCenter defaultCenter]
#define NSUSERDEFAULTS [NSUserDefaults standardUserDefaults]

#endif
